package com.bingxue.edu.management.system.model.query;

import com.bingxue.edu.common.enums.FileTypeEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.system.model.entity.File;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 文件查询条件
 *
 * @author panbo
 * @since 2024/07/24 08:57
 */
@Data
@Schema(description = "文件查询条件")
@TableRef(File.class)
public class FileQuery {

    @Schema(description = "名称")
    @Query(type = QueryType.LIKE)
    private String name;

    @Schema(description = "类型")
    private FileTypeEnum fileType;
}
